function wxShareInit(wxShare){
	var timestamp = (new Date().getTime() / 1000).toFixed(0);
	var nonceStr = '51diaocha' + timestamp;
	var ticket = wxShare.ticket;
	var thisUrl = window.location.href;
	function getSignature(){
		var string1 = 'jsapi_ticket=' + ticket + '&noncestr=' + nonceStr + '&timestamp=' + timestamp + '&url=' + thisUrl;
		return $.sha1(string1);
		 
	}
	wx.config({
	    debug: false,
	    appId: wxShare.id,
	    timestamp: timestamp,
	    nonceStr: nonceStr, 
	    signature: getSignature(),
	    jsApiList: ['checkJsApi','onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo']
	});
	wx.ready(function(){
		wx.checkJsApi({
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo'],
        });
        /*朋友圈*/
		wx.onMenuShareTimeline({
		    title: wxShare.title, 
		    desc: wxShare.desc, 
		    link: wxShare.link, 
		    imgUrl: wxShare.imgUrl,
		    success: function () { 
		    	
		    }
		});
		/*朋友*/
		wx.onMenuShareAppMessage({
			title: wxShare.title, 
		    desc: wxShare.desc, 
		    link: wxShare.link, 
		    imgUrl: wxShare.imgUrl,
		    success: function () { 
		    	
		    }
		});
		/*QQ*/
		wx.onMenuShareQQ({
			title: wxShare.title, 
		    desc: wxShare.desc, 
		    link: wxShare.link, 
		    imgUrl: wxShare.imgUrl,
		    success: function () { 
		    	
		    }
		});
		/*微博*/
		wx.onMenuShareWeibo({
			title: wxShare.title, 
		    desc: wxShare.desc, 
		    link: wxShare.link, 
		    imgUrl: wxShare.imgUrl,
		    success: function () { 
		    	
		    }
		});
	})
}